import {postAction,deleteAction,downFilePost} from '@/api/manage'

const baseUrl = '/jeecg-fz'

//公安部数据导入日志
//分页列表查询
const getDataList = (params)=>postAction(`${baseUrl}/gaData/list`,params);
//批量处理
const batchDeal = (params)=>postAction(`${baseUrl}/gaData/batchDeal`,params);
//公安部数据回填日志
//批量处理
const dataBackfillBatchDeal = (params)=>deleteAction(`${baseUrl}/backfill/dataBackfill/updateBatch`,params);
//预警速报导出
const dataBackfillExportExcel = params => downFilePost(`${baseUrl}/backfill/dataBackfill/exportXls`, params)
const publicApi = {
    getDataList: `${baseUrl}/gaData/list`,//公安部数据导入日志-分页列表查询
    exportExcel:`${baseUrl}/gaData/exportXls`,//公安部数据导入日志-导出Xls
    getDataBackfillList: `${baseUrl}/backfill/dataBackfill/list`,//公安部数据回填日志-分页列表查询
    dataBackfillExportExcel:`${baseUrl}/backfill/dataBackfill/exportXls`,//公安部数据回填日志-导出Xls
}
export {
    publicApi,
    getDataList,
    batchDeal,
    dataBackfillBatchDeal,
    dataBackfillExportExcel
}
